package cn.iocoder.yudao.module.vlog.report.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.iocoder.yudao.framework.business.basic.pojo.vo.UserSimpleVO;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "视频举报 Response VO")
@Data
@ExcelIgnoreUnannotated
public class VLogReportRespVO {

    @Schema(description = "唯一编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "31293")
    @ExcelProperty("唯一编号")
    private Long id;

    @Schema(description = "举报人编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "26618")
    @ExcelProperty("举报人编号")
    private Long userId;

    private UserSimpleVO user;

    @Schema(description = "被举报人编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10933")
    @ExcelProperty("被举报人编号")
    private Long toUserId;

    private UserSimpleVO toUser;

    @Schema(description = "业务类型，如：vlog、vlog_comment", requiredMode = Schema.RequiredMode.REQUIRED, example = "视频评论")
    @ExcelProperty("业务类型")
    private String bizType;

    @Schema(description = "业务编号，如：视频编号、视频评论编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "211")
    @ExcelProperty("业务编号")
    private Long bizId;

    @Schema(description = "举报类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "侮辱谩骂")
    @ExcelProperty(value = "举报类型", converter = DictConvert.class)
    @DictFormat("vlog_report_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String title;

    @Schema(description = "理由说明")
    @ExcelProperty("理由说明")
    private String content;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
